package com.nbgroup.mapper;

import com.github.pagehelper.Page;
import com.nbgroup.pojo.dto.PageDTO;
import com.nbgroup.pojo.vo.NoticeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NoticeMapper {
    @Select("select * from notice_0")
    Page<NoticeVo> notice0(PageDTO dto);

    @Select("select * from notice_1")
    Page<NoticeVo> notice1(PageDTO dto);

    @Select("select * from notice_0 where id = #{id}")
    NoticeVo getInfo(Integer id);
}
